import request from '@/router/axios';
import { baseUrl } from '@/config/env';
export const listMenu = () => request({
    url: baseUrl + '/sys/sysPermission/page',
    method: 'post'
});

export const getMenu = () => request({
    url: baseUrl + '/sys/sysPermission/list',
    method: 'get',
});
export const addMenu = (data) => request({
    url: baseUrl + '/sys/sysPermission',
    method: 'post',
    data: data
});

export const delMenu = (ids) => request({
    url: baseUrl + '/sys/sysPermission/' + ids,
    method: 'delete',
});
export const updateMenu = (data) => request({
    url: baseUrl + '/sys/sysPermission',
    method: 'put',
    data: data
});

